package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.HisDepartmentDao;
import io.renren.entity.HisDepartmentEntity;
import io.renren.service.HisDepartmentService;



@Service("hisDepartmentService")
public class HisDepartmentServiceImpl implements HisDepartmentService {
	@Autowired
	private HisDepartmentDao hisDepartmentDao;
	
	@Override
	public HisDepartmentEntity queryObject(String id){
		return hisDepartmentDao.queryObject(id);
	}
	
	@Override
	public List<HisDepartmentEntity> queryList(Map<String, Object> map){
		return hisDepartmentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return hisDepartmentDao.queryTotal(map);
	}
	
	@Override
	public void save(HisDepartmentEntity hisDepartment){
		hisDepartmentDao.save(hisDepartment);
	}
	
	@Override
	public void update(HisDepartmentEntity hisDepartment){
		hisDepartmentDao.update(hisDepartment);
	}
	
	@Override
	public void delete(String id){
		hisDepartmentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		hisDepartmentDao.deleteBatch(ids);
	}
	
}
